package com.xuanyuanxinyu.app

import android.os.Bundle
import android.view.WindowManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.runtime.Composable
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.core.view.WindowCompat
import com.xuanyuanxinyu.compose.theme.AppTheme
import com.xuanyuanxinyu.compose.ui.common.ActivityUI

class HomeActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        // 设置窗口属性，让内容显示在状态栏下面
//        WindowCompat.setDecorFitsSystemWindows(window, false)
        enableEdgeToEdge()
        setContent {
            MyApplication999Theme {
                Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
//                    val ui = PreviewUI()
                    ActivityUI(modifier = Modifier.padding(innerPadding))
//                    HomeUI(modifier = Modifier.padding(innerPadding))
                }
            }
        }
    }
    
    
    
}

